<div id="maincontainer3" align='center'>
<table cellspacing="0" cellpadding="0" class='printDetails' style='width: 350px;'>
	<tr>
		<td>{include file="print_patient/element_print_header.html"}</td>
		<td vlign='top' style='text-align: right'>
			<img src='../images/bvct_logo_print.png' border='0'/> 
		</td>
	</tr>
</table>


<table cellspacing="0" cellpadding="0" class='printDetails' style='width: 350px; padding-top: 8px; font-size: 1.1em;'>
	<tr>
		<td colspan='2' style='text-align: center; border: none;'><span class='printHeader'>{translate}Receipt{/translate}</span></td>
	</tr>
	<tr>
    	<td class="field" ><span style='font-weight: bold;'>{translate}Full name{/translate}: </span><span>{$person->getName()}</span></td>        
    	<td align='right' class="field" ><span style='font-weight: bold;'>{translate}Patient's ID{/translate}:</span> <span>{$patient->getPatientCode()}</span></td>               
    </tr>
</table>

<table cellspacing="0" cellpadding="0" class='printDetails' style='width: 350px; padding-top: 8px; font-size: 1.1em;'>
    <tr>
        <td class="field" ><span style="font-weight: bold;">{translate}Gender{/translate}: </span>{if $person->getGender()=="male" } {translate}Male{/translate} {elseif $person->getGender()=="female"} {translate}Female{/translate} {/if}</td>
        <td align='right' class="field" ><span style="font-weight: bold;">{translate}Date of birth{/translate}: </span>{$person->getDateofBirth()} ({translate}Age{/translate}: {$person->getAge()})</td>
    </tr>
    <!-- 
     <tr>     	
        <td colspan='2' class="field">Địa chỉ: {$person->getAddress()}</td>
    </tr>
     -->        
</table>
<table cellspacing='0' cellpadding='3px'  width="350px" style='font-size: 1.1em; margin-top: 10px'>
	{foreach from=$ticketData item=item}	
	<tr>
		<td style="font-weight: bold; width: 5px;">{$item.no}/.</td>
		<td>{$item.item_name}</td>
		<td style="text-align: right; font-weight: bold;">{$item.patient_price} {translate}VND{/translate}</td>		
	</tr>	
	{/foreach}		
</table>
<br />
<table cellpadding="3px", cellspacing="0" width="350px" style="font-size: 1.1em;">
	<tr>
		<td align="left" style='border: none; border-top: 1px dotted #000; font-weight: bold;'>{translate}Patient payment{/translate}</td>
		<td align="right" style="font-weight: bold; border: none; border-top: 1px dotted #000;">{$patientPayment} {translate}VND{/translate}</td>
	</tr>	
	<tr>
		<td align="left" style="font-weight: bold;">{translate}Collected fee{/translate}</td>
		<td align="right" style="font-weight: bold;">{$realPayment} {translate}VND{/translate}</td>		
	</tr>
</table>
<div style="margin-top: 20px; " align="center">
	<table cellpadding="0" cellspacing="0" style='font-size: 1.1em' width="350px">
		<tr>
			<td align="right">{$printTime}</td>
		</tr>
		<tr>
			<td align="right" style="padding-right: 30px; font-weight: bold;">{translate}Cashier{/translate}</td>
		</tr>
		<tr>
			<td align="right" style="padding-top: 10px; padding-right: 10px; font-weight: bold;" >{$cashierName}</td>
		</tr>
	</table>	
</div>
